-- GENERATED SPELL FOR [Twilight's Hammer Executioner] --


function spell0_9398(pUnit, Event) --@Battle Fury,Self--
pUnit:FullCastSpellOnTarget(3631,pUnit)
pUnit:RegisterEvent('Sorts_9398', 542, 1)
end

function spell1_9398(pUnit, Event) --@Decimate,n/a--
pUnit:FullCastSpellOnTarget(13459,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9398', 30313, 1)
end

function Sorts_9398(pUnit, Event)
local choix_sorts_9398 = math.random(0, 1)
if choix_sorts_9398 == 0 then
pUnit:RegisterEvent('spell0_9398', 1, 1)
end
if choix_sorts_9398 == 1 then
pUnit:RegisterEvent('spell1_9398', 1, 1)
end
end

function mob9398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9398', math.random(1500, 3000), 1)
end

function mob9398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9398, 1, 'mob9398_Action')
RegisterUnitEvent(9398, 2, 'mob9398_Leave')
RegisterUnitEvent(9398, 3, 'mob9398_Kill')
RegisterUnitEvent(9398, 4, 'mob9398_Die')
